/*
 * KnowledgeSystemMainWindowView.java
 */
package knowledgesystem;

import cn.siox.util.KeywordVector;
import cn.siox.util.UI.*;
import cn.siox.util.WebInfoCatch;
import cn.siox.util.database.DictOperator;
import cn.siox.util.database.UserOperator;
import java.awt.Color;
import java.io.FileNotFoundException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.Icon;
import javax.swing.Timer;
import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

/**
 * The application's main frame.
 */
public class KnowledgeSystemMainWindowView extends FrameView {

    public KnowledgeSystemMainWindowView(SingleFrameApplication app) {
        super(app);

        initComponents();
        type = 1;
        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
        taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {

            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                String propertyName = evt.getPropertyName();
                if ("started".equals(propertyName)) {
                    if (!busyIconTimer.isRunning()) {
                        statusAnimationLabel.setIcon(busyIcons[0]);
                        busyIconIndex = 0;
                        busyIconTimer.start();
                    }
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(true);
                } else if ("done".equals(propertyName)) {
                    busyIconTimer.stop();
                    statusAnimationLabel.setIcon(idleIcon);
                    progressBar.setVisible(false);
                    progressBar.setValue(0);
                } else if ("message".equals(propertyName)) {
                    String text = (String) (evt.getNewValue());
                    statusMessageLabel.setText((text == null) ? "" : text);
                    messageTimer.restart();
                } else if ("progress".equals(propertyName)) {
                    int value = (Integer) (evt.getNewValue());
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(false);
                    progressBar.setValue(value);
                }
            }
        });
    }

    @Action
    public void showAboutBox() {
        if (aboutBox == null) {
            JFrame mainFrame = KnowledgeSystemMainWindow.getApplication().getMainFrame();
            aboutBox = new KnowledgeSystemMainWindowAboutBox(mainFrame);
            aboutBox.setLocationRelativeTo(mainFrame);
        }
        KnowledgeSystemMainWindow.getApplication().show(aboutBox);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainPanel = new javax.swing.JPanel();
        searchPanel = new javax.swing.JPanel();
        productLabel = new javax.swing.JLabel();
        searchTextField = new javax.swing.JTextField();
        searchButton = new javax.swing.JButton();
        encyclopediaLabel = new javax.swing.JLabel();
        technologyLabel = new javax.swing.JLabel();
        allLabel = new javax.swing.JLabel();
        upButton = new javax.swing.JButton();
        downButton = new javax.swing.JButton();
        dictLabel = new javax.swing.JLabel();
        calculateLabel = new javax.swing.JLabel();
        mainScrollPane = new javax.swing.JScrollPane();
        mainTextPane = new javax.swing.JTextPane();
        jumpPanel = new javax.swing.JPanel();
        preButton = new javax.swing.JButton();
        nextButton = new javax.swing.JButton();
        returnButton = new javax.swing.JButton();
        tatalLabel = new javax.swing.JLabel();
        menuBar = new javax.swing.JMenuBar();
        javax.swing.JMenu functionMenu = new javax.swing.JMenu();
        logginMenuItem = new javax.swing.JMenuItem();
        favoriteMenuItem = new javax.swing.JMenuItem();
        javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
        toolsMenu = new javax.swing.JMenu();
        getInfoMenuItem = new javax.swing.JMenuItem();
        idCardMenuItem = new javax.swing.JMenuItem();
        diaryMenuItem = new javax.swing.JMenuItem();
        javax.swing.JMenu helpMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
        statusPanel = new javax.swing.JPanel();
        javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
        statusMessageLabel = new javax.swing.JLabel();
        statusAnimationLabel = new javax.swing.JLabel();
        progressBar = new javax.swing.JProgressBar();
        resultLabel = new javax.swing.JLabel();
        timeLabel = new javax.swing.JLabel();
        favoriteDialog = new javax.swing.JDialog();
        favoriteColorChooser = new javax.swing.JColorChooser();
        favoriteLabel = new javax.swing.JLabel();
        favoritePanel = new javax.swing.JPanel();
        favoriteComboBox = new javax.swing.JComboBox();
        favoriteLabel1 = new javax.swing.JLabel();
        favoriteButton3 = new javax.swing.JButton();
        favoriteButton2 = new javax.swing.JButton();
        favoriteButton1 = new javax.swing.JButton();
        yesORnoDialog = new javax.swing.JDialog();
        yesORnoLabel1 = new javax.swing.JLabel();
        yesORnoLabel2 = new javax.swing.JLabel();
        yesORnoLabel3 = new javax.swing.JLabel();
        yesORnoLabel4 = new javax.swing.JLabel();
        yesORnoButton1 = new javax.swing.JButton();
        yesORnoButton2 = new javax.swing.JButton();
        logginDialog = new javax.swing.JDialog();
        logginPanel = new javax.swing.JPanel();
        userLabel = new javax.swing.JLabel();
        passwordLabel = new javax.swing.JLabel();
        confirmLabel = new javax.swing.JLabel();
        userTextField = new javax.swing.JTextField();
        passwordPasswordField = new javax.swing.JPasswordField();
        confirmPasswordField = new javax.swing.JPasswordField();
        logginDialogLabel = new javax.swing.JLabel();
        logginButton = new javax.swing.JButton();
        exitButton = new javax.swing.JButton();
        registRadioButton = new javax.swing.JRadioButton();
        logginRadioButton = new javax.swing.JRadioButton();
        jCheckBox1 = new javax.swing.JCheckBox();
        statusLabel = new javax.swing.JLabel();
        registCheckBox = new javax.swing.JCheckBox();
        deleteRadioButton = new javax.swing.JRadioButton();
        updateRadioButton = new javax.swing.JRadioButton();
        logbuttonGroup = new javax.swing.ButtonGroup();
        getInfoDialog = new javax.swing.JDialog();
        infoDialogLabel = new javax.swing.JLabel();
        infoDialogTextLabel = new javax.swing.JLabel();
        infoWebLabel = new javax.swing.JLabel();
        infoWebTextField = new javax.swing.JTextField();
        infoComboBox = new javax.swing.JComboBox();
        siphonButton = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        infoTextPane = new javax.swing.JTextPane();
        infoMoreLabel = new javax.swing.JLabel();
        infoMoreTextField = new javax.swing.JTextField();
        infoComLabel = new javax.swing.JLabel();
        idCardDialog = new javax.swing.JDialog();
        iDCardTabbedPane = new javax.swing.JTabbedPane();
        cardPanel1 = new javax.swing.JPanel();
        cardPanel_1 = new javax.swing.JPanel();
        cardTextField1_1 = new javax.swing.JTextField();
        cardButton1_2 = new javax.swing.JButton();
        cardLabel1_1 = new javax.swing.JLabel();
        cardLabel1_2 = new javax.swing.JLabel();
        cardButton1 = new javax.swing.JButton();
        cardPanel2 = new javax.swing.JPanel();
        cardLabel2_2 = new javax.swing.JLabel();
        cardTextField2_2 = new javax.swing.JTextField();
        cardLabel2_1 = new javax.swing.JLabel();
        cardTextField2_1 = new javax.swing.JTextField();
        cardButton2_1 = new javax.swing.JButton();
        cardLabel2_3 = new javax.swing.JLabel();
        cardComboBox2_1 = new javax.swing.JComboBox();
        cardLabel2_4 = new javax.swing.JLabel();
        cardLabel2_5 = new javax.swing.JLabel();
        cardTextField2_4 = new javax.swing.JTextField();
        cardButton2_2 = new javax.swing.JButton();
        cardLabel2_6 = new javax.swing.JLabel();
        cardLabel2_7 = new javax.swing.JLabel();
        cardButton2_3 = new javax.swing.JButton();
        cardLabel2_8 = new javax.swing.JLabel();
        cardTextField2_5 = new javax.swing.JTextField();
        cardPanel3 = new javax.swing.JPanel();
        cardPanel3_1 = new javax.swing.JPanel();
        cardTextField3_1 = new javax.swing.JTextField();
        cardPanel3_2 = new javax.swing.JPanel();
        cardTextField3_2 = new javax.swing.JTextField();
        cardButton3_1 = new javax.swing.JButton();
        cardPanel4 = new javax.swing.JPanel();
        cardPanel4_1 = new javax.swing.JPanel();
        cardLabel4_1 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        jTextField2 = new javax.swing.JTextField();
        iDCardLabel = new javax.swing.JLabel();
        cardPopupMenu = new javax.swing.JPopupMenu();
        cardPopupPanel = new javax.swing.JPanel();
        cardScrollPane = new javax.swing.JScrollPane();
        cardTable = new javax.swing.JTable();
        cardPopupButtonup = new javax.swing.JButton();
        cardPopupButtondown = new javax.swing.JButton();
        cardPopupMenuForLabel2_6 = new javax.swing.JPopupMenu();
        diaryFrame = new javax.swing.JFrame();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        diaryPanel1 = new javax.swing.JPanel();
        diaryPanel2 = new javax.swing.JPanel();
        diaryScrollPane = new javax.swing.JScrollPane();
        diaryTextPane = new javax.swing.JTextPane();
        jPanel1 = new javax.swing.JPanel();
        jToolBar1 = new javax.swing.JToolBar();
        jButton1 = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        diaryMenuBar = new javax.swing.JMenuBar();
        diaryMenu1 = new javax.swing.JMenu();
        diaryMenuItem2 = new javax.swing.JMenuItem();
        diaryMenu2 = new javax.swing.JMenu();

        mainPanel.setName("mainPanel"); // NOI18N

        searchPanel.setName("searchPanel"); // NOI18N

        productLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/knowledgesystem/resources/siox.png"))); // NOI18N
        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("knowledgesystem/Bundle"); // NOI18N
        productLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.productLabel.text")); // NOI18N
        productLabel.setName("productLabel"); // NOI18N

        searchTextField.setName("searchTextField"); // NOI18N
        searchTextField.setToolTipText("请输入关键词");
        searchTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                searchTextFieldActionPerformed(evt);
            }
        });

        searchButton.setText(bundle.getString("KnowledgeSystemMainWindowView.searchButton.text")); // NOI18N
        searchButton.setName("searchButton"); // NOI18N
        searchButton.setToolTipText("给我搜！");
        searchButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                searchButtonActionPerformed(evt);
            }
        });

        encyclopediaLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.encyclopediaLabel.text")); // NOI18N
        encyclopediaLabel.setName("encyclopediaLabel"); // NOI18N
        encyclopediaLabel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                encyclopediaLabelMouseClicked(evt);
            }
        });
        encyclopediaLabel.addHierarchyListener(new java.awt.event.HierarchyListener() {
            public void hierarchyChanged(java.awt.event.HierarchyEvent evt) {
                encyclopediaLabelHierarchyChanged(evt);
            }
        });

        technologyLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.technologyLabel.text")); // NOI18N
        technologyLabel.setName("technologyLabel"); // NOI18N
        technologyLabel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                technologyLabelMouseClicked(evt);
            }
        });
        technologyLabel.addHierarchyListener(new java.awt.event.HierarchyListener() {
            public void hierarchyChanged(java.awt.event.HierarchyEvent evt) {
                technologyLabelHierarchyChanged(evt);
            }
        });

        allLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.allLabel.text")); // NOI18N
        allLabel.setName("allLabel"); // NOI18N
        allLabel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                allLabelMouseClicked(evt);
            }
        });
        allLabel.addHierarchyListener(new java.awt.event.HierarchyListener() {
            public void hierarchyChanged(java.awt.event.HierarchyEvent evt) {
                allLabelHierarchyChanged(evt);
            }
        });

        upButton.setText(bundle.getString("KnowledgeSystemMainWindowView.upButton.text")); // NOI18N
        upButton.setName("upButton"); // NOI18N
        upButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                upButtonActionPerformed(evt);
            }
        });

        downButton.setText(bundle.getString("KnowledgeSystemMainWindowView.downButton.text")); // NOI18N
        downButton.setName("downButton"); // NOI18N
        downButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                downButtonActionPerformed(evt);
            }
        });

        dictLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.dictLabel.text")); // NOI18N
        dictLabel.setName("dictLabel"); // NOI18N
        dictLabel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                dictLabelMouseClicked(evt);
            }
        });
        dictLabel.addHierarchyListener(new java.awt.event.HierarchyListener() {
            public void hierarchyChanged(java.awt.event.HierarchyEvent evt) {
                dictLabelHierarchyChanged(evt);
            }
        });

        calculateLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.calculateLabel.text")); // NOI18N
        calculateLabel.setName("calculateLabel"); // NOI18N
        calculateLabel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                calculateLabelMouseClicked(evt);
            }
        });
        calculateLabel.addHierarchyListener(new java.awt.event.HierarchyListener() {
            public void hierarchyChanged(java.awt.event.HierarchyEvent evt) {
                calculateLabelHierarchyChanged(evt);
            }
        });

        javax.swing.GroupLayout searchPanelLayout = new javax.swing.GroupLayout(searchPanel);
        searchPanel.setLayout(searchPanelLayout);
        searchPanelLayout.setHorizontalGroup(
            searchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(searchPanelLayout.createSequentialGroup()
                .addGroup(searchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(searchPanelLayout.createSequentialGroup()
                        .addGap(93, 93, 93)
                        .addGroup(searchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(searchPanelLayout.createSequentialGroup()
                                .addComponent(searchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 439, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(searchButton))
                            .addGroup(searchPanelLayout.createSequentialGroup()
                                .addGap(25, 25, 25)
                                .addComponent(allLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(encyclopediaLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(technologyLabel)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(dictLabel)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(calculateLabel))))
                    .addGroup(searchPanelLayout.createSequentialGroup()
                        .addGap(208, 208, 208)
                        .addComponent(upButton)
                        .addGap(62, 62, 62)
                        .addComponent(downButton))
                    .addGroup(searchPanelLayout.createSequentialGroup()
                        .addGap(160, 160, 160)
                        .addComponent(productLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 321, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(44, Short.MAX_VALUE))
        );

        searchPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {allLabel, calculateLabel, dictLabel, encyclopediaLabel, technologyLabel});

        searchPanelLayout.setVerticalGroup(
            searchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(searchPanelLayout.createSequentialGroup()
                .addGap(67, 67, 67)
                .addComponent(productLabel)
                .addGap(33, 33, 33)
                .addGroup(searchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(searchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(searchButton))
                .addGap(6, 6, 6)
                .addGroup(searchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(allLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(encyclopediaLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(technologyLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(dictLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(calculateLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(38, 38, 38)
                .addGroup(searchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(upButton)
                    .addComponent(downButton))
                .addContainerGap(131, Short.MAX_VALUE))
        );

        searchPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {allLabel, calculateLabel, dictLabel, encyclopediaLabel, technologyLabel});

        mainScrollPane.setName("mainScrollPane"); // NOI18N

        mainTextPane.setEditable(false);
        mainTextPane.setName("mainTextPane"); // NOI18N
        mainScrollPane.setViewportView(mainTextPane);

        jumpPanel.setName("jumpPanel"); // NOI18N
        jumpPanel.setVisible(false);

        preButton.setText(bundle.getString("KnowledgeSystemMainWindowView.preButton.text")); // NOI18N
        preButton.setName("preButton"); // NOI18N

        nextButton.setText(bundle.getString("KnowledgeSystemMainWindowView.nextButton.text")); // NOI18N
        nextButton.setName("nextButton"); // NOI18N

        returnButton.setText(bundle.getString("KnowledgeSystemMainWindowView.returnButton.text")); // NOI18N
        returnButton.setName("returnButton"); // NOI18N
        returnButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                returnButtonActionPerformed(evt);
            }
        });

        tatalLabel.setName("tatalLabel"); // NOI18N

        javax.swing.GroupLayout jumpPanelLayout = new javax.swing.GroupLayout(jumpPanel);
        jumpPanel.setLayout(jumpPanelLayout);
        jumpPanelLayout.setHorizontalGroup(
            jumpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jumpPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(preButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(nextButton)
                .addGap(57, 57, 57)
                .addComponent(tatalLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 200, Short.MAX_VALUE)
                .addComponent(returnButton)
                .addContainerGap())
        );
        jumpPanelLayout.setVerticalGroup(
            jumpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jumpPanelLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jumpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(returnButton)
                    .addComponent(preButton)
                    .addComponent(nextButton)
                    .addComponent(tatalLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
        mainPanel.setLayout(mainPanelLayout);
        mainPanelLayout.setHorizontalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jumpPanel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(mainScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 673, Short.MAX_VALUE)
            .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(searchPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        mainPanelLayout.setVerticalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
                .addComponent(mainScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jumpPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(searchPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        mainScrollPane.setVisible(false);

        menuBar.setName("menuBar"); // NOI18N

        functionMenu.setText(bundle.getString("KnowledgeSystemMainWindowView.functionMenu.text")); // NOI18N
        functionMenu.setName("functionMenu"); // NOI18N

        logginMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK));
        logginMenuItem.setText(bundle.getString("KnowledgeSystemMainWindowView.logginMenuItem.text")); // NOI18N
        logginMenuItem.setName("logginMenuItem"); // NOI18N
        logginMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                logginMenuItemActionPerformed(evt);
            }
        });
        functionMenu.add(logginMenuItem);

        favoriteMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK));
        favoriteMenuItem.setText(bundle.getString("KnowledgeSystemMainWindowView.favoriteMenuItem.text")); // NOI18N
        favoriteMenuItem.setName("favoriteMenuItem"); // NOI18N
        favoriteMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                favoriteMenuItemActionPerformed(evt);
            }
        });
        functionMenu.add(favoriteMenuItem);

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(knowledgesystem.KnowledgeSystemMainWindow.class).getContext().getActionMap(KnowledgeSystemMainWindowView.class, this);
        exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
        exitMenuItem.setText(bundle.getString("KnowledgeSystemMainWindowView.exitMenuItem.text")); // NOI18N
        exitMenuItem.setName("exitMenuItem"); // NOI18N
        functionMenu.add(exitMenuItem);

        menuBar.add(functionMenu);

        toolsMenu.setText(bundle.getString("KnowledgeSystemMainWindowView.toolsMenu.text")); // NOI18N
        toolsMenu.setName("toolsMenu"); // NOI18N

        getInfoMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.CTRL_MASK));
        getInfoMenuItem.setText(bundle.getString("KnowledgeSystemMainWindowView.getInfoMenuItem.text")); // NOI18N
        getInfoMenuItem.setName("getInfoMenuItem"); // NOI18N
        getInfoMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                getInfoMenuItemActionPerformed(evt);
            }
        });
        toolsMenu.add(getInfoMenuItem);

        idCardMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.CTRL_MASK));
        idCardMenuItem.setText(bundle.getString("KnowledgeSystemMainWindowView.idCardMenuItem.text")); // NOI18N
        idCardMenuItem.setName("idCardMenuItem"); // NOI18N
        idCardMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                idCardMenuItemActionPerformed(evt);
            }
        });
        toolsMenu.add(idCardMenuItem);

        diaryMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.CTRL_MASK));
        diaryMenuItem.setText(bundle.getString("KnowledgeSystemMainWindowView.diaryMenuItem.text")); // NOI18N
        diaryMenuItem.setName("diaryMenuItem"); // NOI18N
        diaryMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                diaryMenuItemActionPerformed(evt);
            }
        });
        toolsMenu.add(diaryMenuItem);

        menuBar.add(toolsMenu);

        helpMenu.setText(bundle.getString("KnowledgeSystemMainWindowView.helpMenu.text")); // NOI18N
        helpMenu.setName("helpMenu"); // NOI18N

        aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
        aboutMenuItem.setText(bundle.getString("KnowledgeSystemMainWindowView.aboutMenuItem.text")); // NOI18N
        aboutMenuItem.setName("aboutMenuItem"); // NOI18N
        helpMenu.add(aboutMenuItem);

        menuBar.add(helpMenu);

        statusPanel.setName("statusPanel"); // NOI18N

        statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N

        statusMessageLabel.setName("statusMessageLabel"); // NOI18N

        statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N

        progressBar.setName("progressBar"); // NOI18N

        resultLabel.setName("resultLabel"); // NOI18N

        timeLabel.setName("timeLabel"); // NOI18N

        javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
        statusPanel.setLayout(statusPanelLayout);
        statusPanelLayout.setHorizontalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(statusPanelSeparator, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 653, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, statusPanelLayout.createSequentialGroup()
                        .addComponent(resultLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 247, Short.MAX_VALUE)
                        .addGap(6, 6, 6)
                        .addComponent(timeLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(statusMessageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(statusAnimationLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        statusPanelLayout.setVerticalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(timeLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(resultLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(statusMessageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(statusAnimationLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        favoriteDialog.setTitle(bundle.getString("KnowledgeSystemMainWindowView.favoriteDialog.title")); // NOI18N
        favoriteDialog.setAlwaysOnTop(true);
        favoriteDialog.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        favoriteDialog.setIconImage(null);
        favoriteDialog.setMinimumSize(new java.awt.Dimension(640, 630));
        favoriteDialog.setModal(true);
        favoriteDialog.setName("favoriteDialog"); // NOI18N
        favoriteDialog.setResizable(false);

        favoriteColorChooser.setName("favoriteColorChooser"); // NOI18N

        favoriteLabel.setFont(new java.awt.Font("楷体_GB2312", 1, 24)); // NOI18N
        favoriteLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.favoriteLabel.text")); // NOI18N
        favoriteLabel.setName("favoriteLabel"); // NOI18N

        favoritePanel.setName("favoritePanel"); // NOI18N

        favoriteComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "主界面", "搜索条", "结果集" }));
        favoriteComboBox.setName("favoriteComboBox"); // NOI18N

        favoriteLabel1.setText(bundle.getString("KnowledgeSystemMainWindowView.favoriteLabel1.text")); // NOI18N
        favoriteLabel1.setName("favoriteLabel1"); // NOI18N

        favoriteButton3.setText(bundle.getString("KnowledgeSystemMainWindowView.favoriteButton3.text")); // NOI18N
        favoriteButton3.setName("favoriteButton3"); // NOI18N
        favoriteButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                favoriteButton3ActionPerformed(evt);
            }
        });

        favoriteButton2.setText(bundle.getString("KnowledgeSystemMainWindowView.favoriteButton2.text")); // NOI18N
        favoriteButton2.setName("favoriteButton2"); // NOI18N
        favoriteButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                favoriteButton2ActionPerformed(evt);
            }
        });

        favoriteButton1.setText(bundle.getString("KnowledgeSystemMainWindowView.favoriteButton1.text")); // NOI18N
        favoriteButton1.setName("favoriteButton1"); // NOI18N
        favoriteButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                favoriteButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout favoritePanelLayout = new javax.swing.GroupLayout(favoritePanel);
        favoritePanel.setLayout(favoritePanelLayout);
        favoritePanelLayout.setHorizontalGroup(
            favoritePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, favoritePanelLayout.createSequentialGroup()
                .addGap(91, 91, 91)
                .addComponent(favoriteLabel1)
                .addGap(18, 18, 18)
                .addComponent(favoriteComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 135, Short.MAX_VALUE)
                .addComponent(favoriteButton3)
                .addGap(45, 45, 45)
                .addComponent(favoriteButton2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(favoriteButton1)
                .addContainerGap())
        );
        favoritePanelLayout.setVerticalGroup(
            favoritePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, favoritePanelLayout.createSequentialGroup()
                .addContainerGap(20, Short.MAX_VALUE)
                .addGroup(favoritePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(favoriteComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(favoriteLabel1)
                    .addComponent(favoriteButton3)
                    .addComponent(favoriteButton2)
                    .addComponent(favoriteButton1))
                .addGap(13, 13, 13))
        );

        javax.swing.GroupLayout favoriteDialogLayout = new javax.swing.GroupLayout(favoriteDialog.getContentPane());
        favoriteDialog.getContentPane().setLayout(favoriteDialogLayout);
        favoriteDialogLayout.setHorizontalGroup(
            favoriteDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(favoriteDialogLayout.createSequentialGroup()
                .addGroup(favoriteDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(favoriteDialogLayout.createSequentialGroup()
                        .addGap(130, 130, 130)
                        .addComponent(favoriteLabel))
                    .addGroup(favoriteDialogLayout.createSequentialGroup()
                        .addGap(23, 23, 23)
                        .addGroup(favoriteDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(favoritePanel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(favoriteColorChooser, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 579, Short.MAX_VALUE))))
                .addContainerGap(34, Short.MAX_VALUE))
        );
        favoriteDialogLayout.setVerticalGroup(
            favoriteDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(favoriteDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(favoriteLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(2, 2, 2)
                .addComponent(favoriteColorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 347, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(favoritePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        new ToCenter().mediate(favoriteDialog);

        yesORnoDialog.setMinimumSize(new java.awt.Dimension(300, 200));
        yesORnoDialog.setModal(true);
        yesORnoDialog.setName("yesORnoDialog"); // NOI18N

        yesORnoLabel1.setFont(new java.awt.Font("宋体", 1, 24)); // NOI18N
        yesORnoLabel1.setText(bundle.getString("KnowledgeSystemMainWindowView.yesORnoLabel1.text")); // NOI18N
        yesORnoLabel1.setName("yesORnoLabel1"); // NOI18N

        yesORnoLabel2.setText(bundle.getString("KnowledgeSystemMainWindowView.yesORnoLabel2.text")); // NOI18N
        yesORnoLabel2.setName("yesORnoLabel2"); // NOI18N

        yesORnoLabel3.setName("yesORnoLabel3"); // NOI18N

        yesORnoLabel4.setText(bundle.getString("KnowledgeSystemMainWindowView.yesORnoLabel4.text")); // NOI18N
        yesORnoLabel4.setName("yesORnoLabel4"); // NOI18N

        yesORnoButton1.setText(bundle.getString("KnowledgeSystemMainWindowView.yesORnoButton1.text")); // NOI18N
        yesORnoButton1.setName("yesORnoButton1"); // NOI18N
        yesORnoButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                yesORnoButton1ActionPerformed(evt);
            }
        });

        yesORnoButton2.setText(bundle.getString("KnowledgeSystemMainWindowView.yesORnoButton2.text")); // NOI18N
        yesORnoButton2.setName("yesORnoButton2"); // NOI18N
        yesORnoButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                yesORnoButton2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout yesORnoDialogLayout = new javax.swing.GroupLayout(yesORnoDialog.getContentPane());
        yesORnoDialog.getContentPane().setLayout(yesORnoDialogLayout);
        yesORnoDialogLayout.setHorizontalGroup(
            yesORnoDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(yesORnoDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(yesORnoLabel1)
                .addContainerGap(305, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, yesORnoDialogLayout.createSequentialGroup()
                .addContainerGap(175, Short.MAX_VALUE)
                .addComponent(yesORnoButton1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(yesORnoButton2)
                .addGap(18, 18, 18))
            .addGroup(yesORnoDialogLayout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addComponent(yesORnoLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(yesORnoLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(yesORnoLabel4)
                .addContainerGap(219, Short.MAX_VALUE))
        );
        yesORnoDialogLayout.setVerticalGroup(
            yesORnoDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(yesORnoDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(yesORnoLabel1)
                .addGap(18, 18, 18)
                .addGroup(yesORnoDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(yesORnoDialogLayout.createSequentialGroup()
                        .addComponent(yesORnoLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 36, Short.MAX_VALUE)
                        .addGroup(yesORnoDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(yesORnoButton1)
                            .addComponent(yesORnoButton2)))
                    .addGroup(yesORnoDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(yesORnoLabel4)
                        .addComponent(yesORnoLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        new ToCenter().mediate(yesORnoDialog);

        logginDialog.setTitle(bundle.getString("KnowledgeSystemMainWindowView.logginDialog.title")); // NOI18N
        logginDialog.setAlwaysOnTop(true);
        logginDialog.setBounds(new java.awt.Rectangle(0, 0, 456, 210));
        logginDialog.setModal(true);
        logginDialog.setName("logginDialog"); // NOI18N
        logginDialog.setResizable(false);

        logginPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        logginPanel.setName("logginPanel"); // NOI18N

        userLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.userLabel.text")); // NOI18N
        userLabel.setName("userLabel"); // NOI18N

        passwordLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.passwordLabel.text")); // NOI18N
        passwordLabel.setName("passwordLabel"); // NOI18N

        confirmLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.confirmLabel.text")); // NOI18N
        confirmLabel.setName("confirmLabel"); // NOI18N

        userTextField.setToolTipText(bundle.getString("KnowledgeSystemMainWindowView.userTextField.toolTipText")); // NOI18N
        userTextField.setName("userTextField"); // NOI18N

        passwordPasswordField.setToolTipText(bundle.getString("KnowledgeSystemMainWindowView.passwordPasswordField.toolTipText")); // NOI18N
        passwordPasswordField.setName("passwordPasswordField"); // NOI18N

        confirmPasswordField.setToolTipText(bundle.getString("KnowledgeSystemMainWindowView.confirmPasswordField.toolTipText")); // NOI18N
        confirmPasswordField.setName("confirmPasswordField"); // NOI18N

        javax.swing.GroupLayout logginPanelLayout = new javax.swing.GroupLayout(logginPanel);
        logginPanel.setLayout(logginPanelLayout);
        logginPanelLayout.setHorizontalGroup(
            logginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(logginPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(logginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(userLabel)
                    .addComponent(confirmLabel)
                    .addComponent(passwordLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(logginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(userTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(passwordPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(confirmPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        logginPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {confirmPasswordField, passwordPasswordField, userTextField});

        logginPanelLayout.setVerticalGroup(
            logginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(logginPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(logginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(logginPanelLayout.createSequentialGroup()
                        .addComponent(userTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(logginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(passwordPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(passwordLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(logginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(confirmPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(confirmLabel)))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, logginPanelLayout.createSequentialGroup()
                        .addGap(6, 6, 6)
                        .addComponent(userLabel)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        logginPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {confirmPasswordField, passwordPasswordField, userTextField});

        logginDialogLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.logginDialogLabel.text")); // NOI18N
        logginDialogLabel.setName("logginDialogLabel"); // NOI18N

        logginButton.setText(bundle.getString("KnowledgeSystemMainWindowView.logginButton.text")); // NOI18N
        logginButton.setName("logginButton"); // NOI18N
        logginButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                logginButtonActionPerformed(evt);
            }
        });

        exitButton.setText(bundle.getString("KnowledgeSystemMainWindowView.exitButton.text")); // NOI18N
        exitButton.setName("exitButton"); // NOI18N
        exitButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exitButtonActionPerformed(evt);
            }
        });

        registRadioButton.setText(bundle.getString("KnowledgeSystemMainWindowView.registRadioButton.text")); // NOI18N
        registRadioButton.setName("registRadioButton"); // NOI18N
        registRadioButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                registRadioButtonActionPerformed(evt);
            }
        });

        logginRadioButton.setText(bundle.getString("KnowledgeSystemMainWindowView.logginRadioButton.text")); // NOI18N
        logginRadioButton.setName("logginRadioButton"); // NOI18N
        logginRadioButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                logginRadioButtonActionPerformed(evt);
            }
        });

        jCheckBox1.setText(bundle.getString("KnowledgeSystemMainWindowView.jCheckBox1.text")); // NOI18N
        jCheckBox1.setName("jCheckBox1"); // NOI18N

        statusLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.statusLabel.text")); // NOI18N
        statusLabel.setName("statusLabel"); // NOI18N

        registCheckBox.setText(bundle.getString("KnowledgeSystemMainWindowView.registCheckBox.text")); // NOI18N
        registCheckBox.setEnabled(false);
        registCheckBox.setName("registCheckBox"); // NOI18N
        registCheckBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                registCheckBoxActionPerformed(evt);
            }
        });

        deleteRadioButton.setText(bundle.getString("KnowledgeSystemMainWindowView.deleteRadioButton.text")); // NOI18N
        deleteRadioButton.setName("deleteRadioButton"); // NOI18N
        deleteRadioButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteRadioButtonActionPerformed(evt);
            }
        });

        updateRadioButton.setText(bundle.getString("KnowledgeSystemMainWindowView.updateRadioButton.text")); // NOI18N
        updateRadioButton.setName("updateRadioButton"); // NOI18N
        updateRadioButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                updateRadioButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout logginDialogLayout = new javax.swing.GroupLayout(logginDialog.getContentPane());
        logginDialog.getContentPane().setLayout(logginDialogLayout);
        logginDialogLayout.setHorizontalGroup(
            logginDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(logginDialogLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(logginDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, logginDialogLayout.createSequentialGroup()
                        .addComponent(logginDialogLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE)
                        .addComponent(logginRadioButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(registRadioButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(updateRadioButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(deleteRadioButton)
                        .addGap(18, 18, 18))
                    .addComponent(statusLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE)
                    .addComponent(logginPanel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGroup(logginDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(logginDialogLayout.createSequentialGroup()
                        .addGap(34, 34, 34)
                        .addGroup(logginDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(logginButton)
                            .addComponent(exitButton)))
                    .addGroup(logginDialogLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(registCheckBox)))
                .addGap(41, 41, 41))
        );
        logginDialogLayout.setVerticalGroup(
            logginDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(logginDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(logginDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(logginDialogLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(logginRadioButton)
                    .addComponent(registRadioButton)
                    .addComponent(updateRadioButton)
                    .addComponent(deleteRadioButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(logginDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(logginPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(logginDialogLayout.createSequentialGroup()
                        .addComponent(registCheckBox)
                        .addGap(13, 13, 13)
                        .addComponent(logginButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(exitButton)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(statusLabel)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        new ToCenter().mediate(logginDialog);

        logbuttonGroup.add(logginRadioButton);
        logbuttonGroup.add(registRadioButton);
        logbuttonGroup.add(updateRadioButton);
        logbuttonGroup.add(deleteRadioButton);

        getInfoDialog.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        getInfoDialog.setTitle(bundle.getString("KnowledgeSystemMainWindowView.getInfoDialog.title")); // NOI18N
        getInfoDialog.setBounds(new java.awt.Rectangle(0, 0, 470, 476));
        getInfoDialog.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        getInfoDialog.setName("getInfoDialog"); // NOI18N
        getInfoDialog.setResizable(false);

        infoDialogLabel.setFont(new java.awt.Font("宋体", 1, 24)); // NOI18N
        infoDialogLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        infoDialogLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.infoDialogLabel.text")); // NOI18N
        infoDialogLabel.setName("infoDialogLabel"); // NOI18N

        infoDialogTextLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.infoDialogTextLabel.text")); // NOI18N
        infoDialogTextLabel.setName("infoDialogTextLabel"); // NOI18N

        infoWebLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.infoWebLabel.text")); // NOI18N
        infoWebLabel.setName("infoWebLabel"); // NOI18N

        infoWebTextField.setName("infoWebTextField"); // NOI18N

        infoComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "网址", "IP", "E-mail", "电话" }));
        infoComboBox.setName("infoComboBox"); // NOI18N
        infoComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                infoComboBoxActionPerformed(evt);
            }
        });

        siphonButton.setText(bundle.getString("KnowledgeSystemMainWindowView.siphonButton.text")); // NOI18N
        siphonButton.setName("siphonButton"); // NOI18N
        siphonButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                siphonButtonActionPerformed(evt);
            }
        });

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        infoTextPane.setBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(255, 153, 255), new java.awt.Color(204, 255, 204)));
        infoTextPane.setEditable(false);
        infoTextPane.setName("infoTextPane"); // NOI18N
        jScrollPane1.setViewportView(infoTextPane);

        infoMoreLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.infoMoreLabel.text")); // NOI18N
        infoMoreLabel.setName("infoMoreLabel"); // NOI18N

        infoMoreTextField.setName("infoMoreTextField"); // NOI18N

        infoComLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.infoComLabel.text")); // NOI18N
        infoComLabel.setName("infoComLabel"); // NOI18N

        javax.swing.GroupLayout getInfoDialogLayout = new javax.swing.GroupLayout(getInfoDialog.getContentPane());
        getInfoDialog.getContentPane().setLayout(getInfoDialogLayout);
        getInfoDialogLayout.setHorizontalGroup(
            getInfoDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, getInfoDialogLayout.createSequentialGroup()
                .addGroup(getInfoDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, getInfoDialogLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 453, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, getInfoDialogLayout.createSequentialGroup()
                        .addGap(66, 66, 66)
                        .addComponent(infoDialogLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 314, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, getInfoDialogLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(infoDialogTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 453, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, getInfoDialogLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(getInfoDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(getInfoDialogLayout.createSequentialGroup()
                                .addComponent(infoComLabel)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(infoComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(infoMoreLabel)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(infoMoreTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 126, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(siphonButton)
                                .addGap(8, 8, 8))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, getInfoDialogLayout.createSequentialGroup()
                                .addGap(6, 6, 6)
                                .addComponent(infoWebLabel)
                                .addGap(10, 10, 10)
                                .addComponent(infoWebTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 386, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        getInfoDialogLayout.setVerticalGroup(
            getInfoDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(getInfoDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(infoDialogLabel)
                .addGap(17, 17, 17)
                .addGroup(getInfoDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(infoWebLabel)
                    .addComponent(infoWebTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(getInfoDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(infoMoreTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(infoComLabel)
                    .addComponent(infoComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(infoMoreLabel)
                    .addComponent(siphonButton))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 378, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(infoDialogTextLabel)
                .addContainerGap())
        );

        infoMoreLabel.setVisible(false);
        infoMoreTextField.setVisible(false);

        ToCenter.mediate(getInfoDialog);

        idCardDialog.setAlwaysOnTop(true);
        idCardDialog.setBounds(new java.awt.Rectangle(0, 0, 550, 574));
        idCardDialog.setName("idCardDialog"); // NOI18N
        idCardDialog.setResizable(false);
        idCardDialog.addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosed(java.awt.event.WindowEvent evt) {
                idCardDialogClose(evt);
            }
        });

        iDCardTabbedPane.setName("iDCardTabbedPane"); // NOI18N

        cardPanel1.setName("cardPanel1"); // NOI18N

        cardPanel_1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("KnowledgeSystemMainWindowView.cardPanel_1.border.title"))); // NOI18N
        cardPanel_1.setName("cardPanel_1"); // NOI18N

        cardTextField1_1.setName("cardTextField1_1"); // NOI18N

        cardButton1_2.setText(bundle.getString("KnowledgeSystemMainWindowView.cardButton1_2.text")); // NOI18N
        cardButton1_2.setName("cardButton1_2"); // NOI18N
        cardButton1_2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cardButton1_2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout cardPanel_1Layout = new javax.swing.GroupLayout(cardPanel_1);
        cardPanel_1.setLayout(cardPanel_1Layout);
        cardPanel_1Layout.setHorizontalGroup(
            cardPanel_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel_1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(cardTextField1_1, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(12, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, cardPanel_1Layout.createSequentialGroup()
                .addContainerGap(335, Short.MAX_VALUE)
                .addComponent(cardButton1_2)
                .addContainerGap())
        );
        cardPanel_1Layout.setVerticalGroup(
            cardPanel_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel_1Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(cardTextField1_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)
                .addComponent(cardButton1_2))
        );

        cardLabel1_1.setName("cardLabel1_1"); // NOI18N

        cardLabel1_2.setName("cardLabel1_2"); // NOI18N

        cardButton1.setText(bundle.getString("KnowledgeSystemMainWindowView.cardButton1.text")); // NOI18N
        cardButton1.setName("cardButton1"); // NOI18N
        cardButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cardButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout cardPanel1Layout = new javax.swing.GroupLayout(cardPanel1);
        cardPanel1.setLayout(cardPanel1Layout);
        cardPanel1Layout.setHorizontalGroup(
            cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel1Layout.createSequentialGroup()
                .addGap(51, 51, 51)
                .addGroup(cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cardLabel1_1, javax.swing.GroupLayout.PREFERRED_SIZE, 297, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cardPanel_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(cardPanel1Layout.createSequentialGroup()
                        .addComponent(cardLabel1_2, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(cardButton1)
                        .addGap(25, 25, 25)))
                .addContainerGap(28, Short.MAX_VALUE))
        );
        cardPanel1Layout.setVerticalGroup(
            cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel1Layout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addComponent(cardPanel_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(52, 52, 52)
                .addComponent(cardLabel1_1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(cardPanel1Layout.createSequentialGroup()
                        .addGap(42, 42, 42)
                        .addComponent(cardLabel1_2, javax.swing.GroupLayout.DEFAULT_SIZE, 22, Short.MAX_VALUE))
                    .addGroup(cardPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cardButton1)))
                .addContainerGap(171, Short.MAX_VALUE))
        );

        iDCardTabbedPane.addTab(bundle.getString("KnowledgeSystemMainWindowView.cardPanel1.TabConstraints.tabTitle"), cardPanel1); // NOI18N

        cardPanel2.setName("cardPanel2"); // NOI18N

        cardLabel2_2.setText(bundle.getString("KnowledgeSystemMainWindowView.cardLabel2_2.text")); // NOI18N
        cardLabel2_2.setName("cardLabel2_2"); // NOI18N

        cardTextField2_2.setBackground(new java.awt.Color(255, 255, 255));
        cardTextField2_2.setEditable(false);
        cardTextField2_2.setName("cardTextField2_2"); // NOI18N
        cardTextField2_2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cardTextField2_2MouseClicked(evt);
            }
        });

        cardLabel2_1.setText(bundle.getString("KnowledgeSystemMainWindowView.cardLabel2_1.text")); // NOI18N
        cardLabel2_1.setName("cardLabel2_1"); // NOI18N

        cardTextField2_1.setName("cardTextField2_1"); // NOI18N

        cardButton2_1.setText(bundle.getString("KnowledgeSystemMainWindowView.cardButton2_1.text")); // NOI18N
        cardButton2_1.setName("cardButton2_1"); // NOI18N
        cardButton2_1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cardButton2_1MouseClicked(evt);
            }
        });

        cardLabel2_3.setText(bundle.getString("KnowledgeSystemMainWindowView.cardLabel2_3.text")); // NOI18N
        cardLabel2_3.setName("cardLabel2_3"); // NOI18N

        cardComboBox2_1.setBackground(new java.awt.Color(255, 255, 255));
        cardComboBox2_1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "男", "女", "第三种不予考虑..." }));
        cardComboBox2_1.setName("cardComboBox2_1"); // NOI18N
        cardComboBox2_1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cardComboBox2_1ActionPerformed(evt);
            }
        });

        cardLabel2_4.setText(bundle.getString("KnowledgeSystemMainWindowView.cardLabel2_4.text")); // NOI18N
        cardLabel2_4.setName("cardLabel2_4"); // NOI18N

        cardLabel2_5.setText(bundle.getString("KnowledgeSystemMainWindowView.cardLabel2_5.text")); // NOI18N
        cardLabel2_5.setName("cardLabel2_5"); // NOI18N

        cardTextField2_4.setEditable(false);
        cardTextField2_4.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        cardTextField2_4.setName("cardTextField2_4"); // NOI18N

        cardButton2_2.setText(bundle.getString("KnowledgeSystemMainWindowView.cardButton2_2.text")); // NOI18N
        cardButton2_2.setName("cardButton2_2"); // NOI18N
        cardButton2_2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cardButton2_2ActionPerformed(evt);
            }
        });

        cardLabel2_6.setFont(new java.awt.Font("宋体", 1, 24)); // NOI18N
        cardLabel2_6.setName("cardLabel2_6"); // NOI18N

        cardLabel2_7.setFont(new java.awt.Font("宋体", 0, 18)); // NOI18N
        cardLabel2_7.setForeground(new java.awt.Color(255, 0, 0));
        cardLabel2_7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        cardLabel2_7.setText(bundle.getString("KnowledgeSystemMainWindowView.cardLabel2_7.text")); // NOI18N
        cardLabel2_7.setName("cardLabel2_7"); // NOI18N

        cardButton2_3.setText(bundle.getString("KnowledgeSystemMainWindowView.cardButton2_3.text")); // NOI18N
        cardButton2_3.setName("cardButton2_3"); // NOI18N
        cardButton2_3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cardButton2_3ActionPerformed(evt);
            }
        });

        cardLabel2_8.setText(bundle.getString("KnowledgeSystemMainWindowView.cardLabel2_8.text")); // NOI18N
        cardLabel2_8.setName("cardLabel2_8"); // NOI18N

        cardTextField2_5.setName("cardTextField2_5"); // NOI18N

        javax.swing.GroupLayout cardPanel2Layout = new javax.swing.GroupLayout(cardPanel2);
        cardPanel2.setLayout(cardPanel2Layout);
        cardPanel2Layout.setHorizontalGroup(
            cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel2Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(cardPanel2Layout.createSequentialGroup()
                        .addGroup(cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(cardPanel2Layout.createSequentialGroup()
                                .addComponent(cardLabel2_3)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cardComboBox2_1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(cardPanel2Layout.createSequentialGroup()
                                .addComponent(cardLabel2_1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cardTextField2_1))
                            .addGroup(cardPanel2Layout.createSequentialGroup()
                                .addComponent(cardLabel2_2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(cardTextField2_2, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cardButton2_1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(cardPanel2Layout.createSequentialGroup()
                        .addGroup(cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cardLabel2_4)
                            .addComponent(cardLabel2_8))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(cardTextField2_5)
                            .addComponent(cardTextField2_4, javax.swing.GroupLayout.DEFAULT_SIZE, 74, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cardButton2_2)
                        .addGap(6, 6, 6)
                        .addComponent(cardButton2_3)))
                .addContainerGap(102, Short.MAX_VALUE))
            .addGroup(cardPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(cardLabel2_5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(cardLabel2_6, javax.swing.GroupLayout.PREFERRED_SIZE, 294, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(172, 172, 172))
            .addGroup(cardPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(cardLabel2_7, javax.swing.GroupLayout.PREFERRED_SIZE, 413, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(88, Short.MAX_VALUE))
        );
        cardPanel2Layout.setVerticalGroup(
            cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel2Layout.createSequentialGroup()
                .addGap(41, 41, 41)
                .addGroup(cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(cardPanel2Layout.createSequentialGroup()
                        .addGroup(cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cardLabel2_1)
                            .addComponent(cardTextField2_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cardButton2_1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cardLabel2_2)
                            .addComponent(cardTextField2_2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cardLabel2_3)
                            .addComponent(cardComboBox2_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(67, 67, 67)
                        .addGroup(cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cardLabel2_4)
                            .addComponent(cardTextField2_4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cardButton2_2))
                        .addGap(18, 18, 18)
                        .addGroup(cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cardLabel2_8)
                            .addComponent(cardTextField2_5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(28, 28, 28))
                    .addGroup(cardPanel2Layout.createSequentialGroup()
                        .addComponent(cardButton2_3, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addGap(29, 29, 29)
                .addComponent(cardLabel2_7, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addGroup(cardPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(cardLabel2_5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(cardLabel2_6, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(156, 156, 156))
        );

        cardLabel2_7.setVisible(false);

        iDCardTabbedPane.addTab(bundle.getString("KnowledgeSystemMainWindowView.cardPanel2.TabConstraints.tabTitle"), cardPanel2); // NOI18N

        cardPanel3.setName("cardPanel3"); // NOI18N

        cardPanel3_1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("KnowledgeSystemMainWindowView.cardPanel3_1.border.title"))); // NOI18N
        cardPanel3_1.setName("cardPanel3_1"); // NOI18N

        cardTextField3_1.setName("cardTextField3_1"); // NOI18N

        javax.swing.GroupLayout cardPanel3_1Layout = new javax.swing.GroupLayout(cardPanel3_1);
        cardPanel3_1.setLayout(cardPanel3_1Layout);
        cardPanel3_1Layout.setHorizontalGroup(
            cardPanel3_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel3_1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(cardTextField3_1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
                .addContainerGap())
        );
        cardPanel3_1Layout.setVerticalGroup(
            cardPanel3_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel3_1Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(cardTextField3_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(33, Short.MAX_VALUE))
        );

        cardPanel3_2.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("KnowledgeSystemMainWindowView.cardPanel3_2.border.title"))); // NOI18N
        cardPanel3_2.setName("cardPanel3_2"); // NOI18N

        cardTextField3_2.setEditable(false);
        cardTextField3_2.setName("cardTextField3_2"); // NOI18N

        javax.swing.GroupLayout cardPanel3_2Layout = new javax.swing.GroupLayout(cardPanel3_2);
        cardPanel3_2.setLayout(cardPanel3_2Layout);
        cardPanel3_2Layout.setHorizontalGroup(
            cardPanel3_2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel3_2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(cardTextField3_2, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE)
                .addContainerGap())
        );
        cardPanel3_2Layout.setVerticalGroup(
            cardPanel3_2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel3_2Layout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addComponent(cardTextField3_2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(43, Short.MAX_VALUE))
        );

        cardButton3_1.setText(bundle.getString("KnowledgeSystemMainWindowView.cardButton3_1.text")); // NOI18N
        cardButton3_1.setName("cardButton3_1"); // NOI18N
        cardButton3_1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cardButton3_1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout cardPanel3Layout = new javax.swing.GroupLayout(cardPanel3);
        cardPanel3.setLayout(cardPanel3Layout);
        cardPanel3Layout.setHorizontalGroup(
            cardPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel3Layout.createSequentialGroup()
                .addGroup(cardPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(cardPanel3Layout.createSequentialGroup()
                        .addGap(216, 216, 216)
                        .addComponent(cardButton3_1))
                    .addGroup(cardPanel3Layout.createSequentialGroup()
                        .addGap(51, 51, 51)
                        .addGroup(cardPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cardPanel3_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cardPanel3_2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(28, Short.MAX_VALUE))
        );
        cardPanel3Layout.setVerticalGroup(
            cardPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel3Layout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addComponent(cardPanel3_1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(cardButton3_1)
                .addGap(31, 31, 31)
                .addComponent(cardPanel3_2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(109, Short.MAX_VALUE))
        );

        iDCardTabbedPane.addTab(bundle.getString("KnowledgeSystemMainWindowView.cardPanel3.TabConstraints.tabTitle"), cardPanel3); // NOI18N

        cardPanel4.setName("cardPanel4"); // NOI18N

        cardPanel4_1.setBorder(javax.swing.BorderFactory.createTitledBorder(bundle.getString("KnowledgeSystemMainWindowView.cardPanel4_1.border.title"))); // NOI18N
        cardPanel4_1.setName("cardPanel4_1"); // NOI18N
        cardPanel4_1.setPreferredSize(new java.awt.Dimension(491, 312));

        cardLabel4_1.setText(bundle.getString("KnowledgeSystemMainWindowView.cardLabel4_1.text")); // NOI18N
        cardLabel4_1.setName("cardLabel4_1"); // NOI18N

        jLabel1.setText(bundle.getString("KnowledgeSystemMainWindowView.jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jLabel2.setText(bundle.getString("KnowledgeSystemMainWindowView.jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        jLabel3.setText(bundle.getString("KnowledgeSystemMainWindowView.jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel4.setText(bundle.getString("KnowledgeSystemMainWindowView.jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jLabel5.setText(bundle.getString("KnowledgeSystemMainWindowView.jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        jLabel6.setText(bundle.getString("KnowledgeSystemMainWindowView.jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N

        jLabel7.setText(bundle.getString("KnowledgeSystemMainWindowView.jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N

        jLabel8.setText(bundle.getString("KnowledgeSystemMainWindowView.jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N

        jLabel9.setText(bundle.getString("KnowledgeSystemMainWindowView.jLabel9.text")); // NOI18N
        jLabel9.setName("jLabel9"); // NOI18N

        javax.swing.GroupLayout cardPanel4_1Layout = new javax.swing.GroupLayout(cardPanel4_1);
        cardPanel4_1.setLayout(cardPanel4_1Layout);
        cardPanel4_1Layout.setHorizontalGroup(
            cardPanel4_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, cardPanel4_1Layout.createSequentialGroup()
                .addGroup(cardPanel4_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(cardPanel4_1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 267, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(cardPanel4_1Layout.createSequentialGroup()
                        .addGap(74, 74, 74)
                        .addGroup(cardPanel4_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cardLabel4_1)
                            .addGroup(cardPanel4_1Layout.createSequentialGroup()
                                .addGroup(cardPanel4_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel4)
                                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE))
                                .addGap(65, 65, 65)
                                .addGroup(cardPanel4_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(cardPanel4_1Layout.createSequentialGroup()
                                        .addComponent(jLabel5)
                                        .addGap(22, 22, 22)
                                        .addComponent(jLabel6))
                                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(76, 76, 76))
                            .addGroup(cardPanel4_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 193, Short.MAX_VALUE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(59, 59, 59))
        );
        cardPanel4_1Layout.setVerticalGroup(
            cardPanel4_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel4_1Layout.createSequentialGroup()
                .addGroup(cardPanel4_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(cardPanel4_1Layout.createSequentialGroup()
                        .addGap(25, 25, 25)
                        .addComponent(cardLabel4_1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(cardPanel4_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jLabel3))
                        .addGap(18, 18, 18)
                        .addGroup(cardPanel4_1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addComponent(jLabel7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel8)
                        .addGap(61, 61, 61))
                    .addGroup(cardPanel4_1Layout.createSequentialGroup()
                        .addContainerGap(58, Short.MAX_VALUE)
                        .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(37, 37, 37)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel9))
        );

        jLabel10.setText(bundle.getString("KnowledgeSystemMainWindowView.jLabel10.text")); // NOI18N
        jLabel10.setName("jLabel10"); // NOI18N

        jTextField1.setText(bundle.getString("KnowledgeSystemMainWindowView.jTextField1.text")); // NOI18N
        jTextField1.setName("jTextField1"); // NOI18N

        jLabel11.setText(bundle.getString("KnowledgeSystemMainWindowView.jLabel11.text")); // NOI18N
        jLabel11.setName("jLabel11"); // NOI18N

        jTextField2.setText(bundle.getString("KnowledgeSystemMainWindowView.jTextField2.text")); // NOI18N
        jTextField2.setName("jTextField2"); // NOI18N

        javax.swing.GroupLayout cardPanel4Layout = new javax.swing.GroupLayout(cardPanel4);
        cardPanel4.setLayout(cardPanel4Layout);
        cardPanel4Layout.setHorizontalGroup(
            cardPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(cardPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cardPanel4_1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(cardPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(cardPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel11)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 388, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        cardPanel4Layout.setVerticalGroup(
            cardPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPanel4Layout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addGroup(cardPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(cardPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(38, 38, 38)
                .addComponent(cardPanel4_1, javax.swing.GroupLayout.PREFERRED_SIZE, 315, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        ImageIcon image =new ImageIcon(this.getClass().getResource("resources/idcard.jpg"));//注意路径的写法
        ImageBackgroundPanel ibp=new ImageBackgroundPanel(image);
        ibp.setSize(490, 311);
        cardPanel4_1.add(ibp);
        cardPanel4_1.setVisible(true);
        cardPanel4_1.repaint();

        iDCardTabbedPane.addTab(bundle.getString("KnowledgeSystemMainWindowView.cardPanel4.TabConstraints.tabTitle"), cardPanel4); // NOI18N

        iDCardLabel.setFont(new java.awt.Font("宋体", 1, 18)); // NOI18N
        iDCardLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        iDCardLabel.setText(bundle.getString("KnowledgeSystemMainWindowView.iDCardLabel.text")); // NOI18N
        iDCardLabel.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);
        iDCardLabel.setName("iDCardLabel"); // NOI18N

        javax.swing.GroupLayout idCardDialogLayout = new javax.swing.GroupLayout(idCardDialog.getContentPane());
        idCardDialog.getContentPane().setLayout(idCardDialogLayout);
        idCardDialogLayout.setHorizontalGroup(
            idCardDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(idCardDialogLayout.createSequentialGroup()
                .addGroup(idCardDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(idCardDialogLayout.createSequentialGroup()
                        .addGap(187, 187, 187)
                        .addComponent(iDCardLabel))
                    .addGroup(idCardDialogLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(iDCardTabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 516, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        idCardDialogLayout.setVerticalGroup(
            idCardDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(idCardDialogLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(iDCardLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(iDCardTabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 483, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        ToCenter.mediate(idCardDialog);

        cardPopupMenu.setName("cardPopupMenu"); // NOI18N

        cardPopupPanel.setName("cardPopupPanel"); // NOI18N

        cardScrollPane.setName("cardScrollPane"); // NOI18N

        cardTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "id", "地区编码", "地区名称"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        cardTable.setName("cardTable"); // NOI18N
        cardTable.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cardTableMouseClicked(evt);
            }
        });
        cardScrollPane.setViewportView(cardTable);
        cardTable.getColumnModel().getColumn(0).setHeaderValue(bundle.getString("KnowledgeSystemMainWindowView.cardTable.columnModel.title0")); // NOI18N
        cardTable.getColumnModel().getColumn(1).setHeaderValue(bundle.getString("KnowledgeSystemMainWindowView.cardTable.columnModel.title1")); // NOI18N
        cardTable.getColumnModel().getColumn(2).setHeaderValue(bundle.getString("KnowledgeSystemMainWindowView.cardTable.columnModel.title2")); // NOI18N

        cardPopupButtonup.setText(bundle.getString("KnowledgeSystemMainWindowView.cardPopupButtonup.text")); // NOI18N
        cardPopupButtonup.setName("cardPopupButtonup"); // NOI18N
        cardPopupButtonup.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cardPopupButtonupActionPerformed(evt);
            }
        });

        cardPopupButtondown.setText(bundle.getString("KnowledgeSystemMainWindowView.cardPopupButtondown.text")); // NOI18N
        cardPopupButtondown.setName("cardPopupButtondown"); // NOI18N
        cardPopupButtondown.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cardPopupButtondownActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout cardPopupPanelLayout = new javax.swing.GroupLayout(cardPopupPanel);
        cardPopupPanel.setLayout(cardPopupPanelLayout);
        cardPopupPanelLayout.setHorizontalGroup(
            cardPopupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(cardPopupPanelLayout.createSequentialGroup()
                .addGroup(cardPopupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(cardPopupPanelLayout.createSequentialGroup()
                        .addGap(383, 383, 383)
                        .addComponent(cardPopupButtonup)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cardPopupButtondown))
                    .addGroup(cardPopupPanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(cardScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        cardPopupPanelLayout.setVerticalGroup(
            cardPopupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, cardPopupPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(cardScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(cardPopupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cardPopupButtondown)
                    .addComponent(cardPopupButtonup)))
        );

        cardPopupMenuForLabel2_6.setName("cardPopupMenuForLabel2_6"); // NOI18N

        diaryFrame.setTitle(bundle.getString("KnowledgeSystemMainWindowView.diaryFrame.title")); // NOI18N
        diaryFrame.setName("diaryFrame"); // NOI18N

        jTabbedPane1.setName("jTabbedPane1"); // NOI18N

        diaryPanel1.setName("diaryPanel1"); // NOI18N

        javax.swing.GroupLayout diaryPanel1Layout = new javax.swing.GroupLayout(diaryPanel1);
        diaryPanel1.setLayout(diaryPanel1Layout);
        diaryPanel1Layout.setHorizontalGroup(
            diaryPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 681, Short.MAX_VALUE)
        );
        diaryPanel1Layout.setVerticalGroup(
            diaryPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 394, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab(bundle.getString("KnowledgeSystemMainWindowView.diaryPanel1.TabConstraints.tabTitle"), diaryPanel1); // NOI18N

        diaryPanel2.setName("diaryPanel2"); // NOI18N

        diaryScrollPane.setName("diaryScrollPane"); // NOI18N

        diaryTextPane.setName("diaryTextPane"); // NOI18N
        diaryScrollPane.setViewportView(diaryTextPane);

        jPanel1.setName("jPanel1"); // NOI18N

        jToolBar1.setRollover(true);
        jToolBar1.setName("jToolBar1"); // NOI18N

        jButton1.setText(bundle.getString("KnowledgeSystemMainWindowView.jButton1.text")); // NOI18N
        jButton1.setFocusable(false);
        jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jButton1.setName("jButton1"); // NOI18N
        jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(jButton1);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(359, Short.MAX_VALUE))
        );

        jPanel2.setName("jPanel2"); // NOI18N

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 597, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 31, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout diaryPanel2Layout = new javax.swing.GroupLayout(diaryPanel2);
        diaryPanel2.setLayout(diaryPanel2Layout);
        diaryPanel2Layout.setHorizontalGroup(
            diaryPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(diaryPanel2Layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(diaryPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(diaryScrollPane, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 597, Short.MAX_VALUE)))
        );
        diaryPanel2Layout.setVerticalGroup(
            diaryPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(diaryPanel2Layout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(diaryScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 357, Short.MAX_VALUE))
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab(bundle.getString("KnowledgeSystemMainWindowView.diaryPanel2.TabConstraints.tabTitle"), diaryPanel2); // NOI18N

        diaryMenuBar.setName("diaryMenuBar"); // NOI18N

        diaryMenu1.setText(bundle.getString("KnowledgeSystemMainWindowView.diaryMenu1.text")); // NOI18N
        diaryMenu1.setName("diaryMenu1"); // NOI18N
        diaryMenu1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                diaryMenu1ActionPerformed(evt);
            }
        });

        diaryMenuItem2.setText(bundle.getString("KnowledgeSystemMainWindowView.diaryMenuItem2.text")); // NOI18N
        diaryMenuItem2.setName("diaryMenuItem2"); // NOI18N
        diaryMenu1.add(diaryMenuItem2);

        diaryMenuBar.add(diaryMenu1);

        diaryMenu2.setText(bundle.getString("KnowledgeSystemMainWindowView.diaryMenu2.text")); // NOI18N
        diaryMenu2.setName("diaryMenu2"); // NOI18N
        diaryMenuBar.add(diaryMenu2);

        diaryFrame.setJMenuBar(diaryMenuBar);

        javax.swing.GroupLayout diaryFrameLayout = new javax.swing.GroupLayout(diaryFrame.getContentPane());
        diaryFrame.getContentPane().setLayout(diaryFrameLayout);
        diaryFrameLayout.setHorizontalGroup(
            diaryFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 686, Short.MAX_VALUE)
        );
        diaryFrameLayout.setVerticalGroup(
            diaryFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE)
        );

        ToCenter.mediate(diaryFrame);

        setComponent(mainPanel);
        setMenuBar(menuBar);
        setStatusBar(statusPanel);
    }// </editor-fold>//GEN-END:initComponents

private void searchTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_searchTextFieldActionPerformed
    searchButton.doClick();

}//GEN-LAST:event_searchTextFieldActionPerformed

private void searchButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_searchButtonActionPerformed
    if (searchTextField.getText().trim().equals("")) {  //注意此处不能用 == 来比较字符串 ==用于比较对象
        //空执行
    } else {
        keyword.add(searchTextField.getText());
        //System.out.println(searchTextField.getText());
        if (searchTextField.getText().matches("^[\\.\\d\\+\\-\\*/\\(\\)]+$") && 5 != type) {
            yesORnoLabel3.setText("计算");
            yesORnoLabel3.setForeground(new Color(204, 0, 255));
            yesORnoDialog.setVisible(true);
        }
        resultLabel.setText(searchTextField.getText());
        searchPanel.setVisible(false);
        mainScrollPane.setVisible(true);
        jumpPanel.setVisible(true);
        long start = new Date().getTime();
        switch (type) {
            case 1:                      //所有
                break;
            case 2:                     //百科
                break;
            case 3:                     //技术
                break;
            case 4:                     //词典
                DictOperator dbo = new DictOperator();
                mainTextPane.setText(dbo.dictQuery(searchTextField.getText()));
                tatalLabel.setText("搜索到: " + dbo.getCount() + " 条");
                //mainTextPane.setFont(setTtfFont(fontFile));
                break;
            case 5:                     //计算
                mainTextPane.setText(new CalculateShow().calculateResult(searchTextField.getText()));
                break;
            default:
                break;
        }
        long end = new Date().getTime();
        timeLabel.setText("总耗时 " + (end - start) + " ms");
    }
}//GEN-LAST:event_searchButtonActionPerformed

private void returnButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_returnButtonActionPerformed
    mainScrollPane.setVisible(false);
    jumpPanel.setVisible(false);
    searchTextField.setText("");
    mainTextPane.setText("");
    timeLabel.setText("");
    type = 1;
    searchPanel.setVisible(true);
}//GEN-LAST:event_returnButtonActionPerformed

private void favoriteMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_favoriteMenuItemActionPerformed

    favoriteDialog.setVisible(true);
}//GEN-LAST:event_favoriteMenuItemActionPerformed

private void favoriteButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_favoriteButton3ActionPerformed

    searchPanel.setBackground(new Color(244, 244, 244));
    searchTextField.setBackground(new Color(255, 255, 255));
    mainPanel.setBackground(new Color(255, 255, 255));
    favoriteDialog.dispose();
}//GEN-LAST:event_favoriteButton3ActionPerformed

private void allLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_allLabelMouseClicked

    allLabel.setForeground(new Color(0, 0, 255));
    encyclopediaLabel.setForeground(new Color(0, 0, 0));
    technologyLabel.setForeground(new Color(0, 0, 0));
    dictLabel.setForeground(new Color(0, 0, 0));
    calculateLabel.setForeground(new Color(0, 0, 0));
    type = 1;
}//GEN-LAST:event_allLabelMouseClicked

private void encyclopediaLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_encyclopediaLabelMouseClicked

    allLabel.setForeground(new Color(0, 0, 0));
    encyclopediaLabel.setForeground(new Color(0, 0, 255));
    technologyLabel.setForeground(new Color(0, 0, 0));
    dictLabel.setForeground(new Color(0, 0, 0));
    calculateLabel.setForeground(new Color(0, 0, 0));
    type = 2;
}//GEN-LAST:event_encyclopediaLabelMouseClicked

private void technologyLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_technologyLabelMouseClicked

    allLabel.setForeground(new Color(0, 0, 0));
    encyclopediaLabel.setForeground(new Color(0, 0, 0));
    technologyLabel.setForeground(new Color(0, 0, 255));
    dictLabel.setForeground(new Color(0, 0, 0));
    calculateLabel.setForeground(new Color(0, 0, 0));
    type = 3;
}//GEN-LAST:event_technologyLabelMouseClicked

private void dictLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_dictLabelMouseClicked

    allLabel.setForeground(new Color(0, 0, 0));
    encyclopediaLabel.setForeground(new Color(0, 0, 0));
    technologyLabel.setForeground(new Color(0, 0, 0));
    dictLabel.setForeground(new Color(0, 0, 255));
    calculateLabel.setForeground(new Color(0, 0, 0));
    type = 4;
}//GEN-LAST:event_dictLabelMouseClicked

private void calculateLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_calculateLabelMouseClicked

    allLabel.setForeground(new Color(0, 0, 0));
    encyclopediaLabel.setForeground(new Color(0, 0, 0));
    technologyLabel.setForeground(new Color(0, 0, 0));
    dictLabel.setForeground(new Color(0, 0, 0));
    calculateLabel.setForeground(new Color(0, 0, 255));
    type = 5;
}//GEN-LAST:event_calculateLabelMouseClicked

private void yesORnoButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_yesORnoButton2ActionPerformed

    searchButton.doClick();
    yesORnoDialog.setVisible(false);
}//GEN-LAST:event_yesORnoButton2ActionPerformed

private void yesORnoButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_yesORnoButton1ActionPerformed

    type = 5;
    searchButton.doClick();
    yesORnoDialog.setVisible(false);
}//GEN-LAST:event_yesORnoButton1ActionPerformed

private void allLabelHierarchyChanged(java.awt.event.HierarchyEvent evt) {//GEN-FIRST:event_allLabelHierarchyChanged

    if (1 == type) {
        allLabel.setForeground(new Color(0, 0, 255));
        encyclopediaLabel.setForeground(new Color(0, 0, 0));
        technologyLabel.setForeground(new Color(0, 0, 0));
        dictLabel.setForeground(new Color(0, 0, 0));
        calculateLabel.setForeground(new Color(0, 0, 0));
    }
}//GEN-LAST:event_allLabelHierarchyChanged

private void encyclopediaLabelHierarchyChanged(java.awt.event.HierarchyEvent evt) {//GEN-FIRST:event_encyclopediaLabelHierarchyChanged

    if (2 == type) {
        allLabel.setForeground(new Color(0, 0, 0));
        encyclopediaLabel.setForeground(new Color(0, 0, 255));
        technologyLabel.setForeground(new Color(0, 0, 0));
        dictLabel.setForeground(new Color(0, 0, 0));
        calculateLabel.setForeground(new Color(0, 0, 0));
    }
}//GEN-LAST:event_encyclopediaLabelHierarchyChanged

private void technologyLabelHierarchyChanged(java.awt.event.HierarchyEvent evt) {//GEN-FIRST:event_technologyLabelHierarchyChanged

    if (3 == type) {
        allLabel.setForeground(new Color(0, 0, 0));
        encyclopediaLabel.setForeground(new Color(0, 0, 0));
        technologyLabel.setForeground(new Color(0, 0, 255));
        dictLabel.setForeground(new Color(0, 0, 0));
        calculateLabel.setForeground(new Color(0, 0, 0));
    }
}//GEN-LAST:event_technologyLabelHierarchyChanged

private void dictLabelHierarchyChanged(java.awt.event.HierarchyEvent evt) {//GEN-FIRST:event_dictLabelHierarchyChanged

    if (4 == type) {
        allLabel.setForeground(new Color(0, 0, 0));
        encyclopediaLabel.setForeground(new Color(0, 0, 0));
        technologyLabel.setForeground(new Color(0, 0, 0));
        dictLabel.setForeground(new Color(0, 0, 255));
        calculateLabel.setForeground(new Color(0, 0, 0));
    }
}//GEN-LAST:event_dictLabelHierarchyChanged

private void calculateLabelHierarchyChanged(java.awt.event.HierarchyEvent evt) {//GEN-FIRST:event_calculateLabelHierarchyChanged

    if (5 == type) {
        allLabel.setForeground(new Color(0, 0, 0));
        encyclopediaLabel.setForeground(new Color(0, 0, 0));
        technologyLabel.setForeground(new Color(0, 0, 0));
        dictLabel.setForeground(new Color(0, 0, 0));
        calculateLabel.setForeground(new Color(0, 0, 255));
    }
}//GEN-LAST:event_calculateLabelHierarchyChanged

private void upButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_upButtonActionPerformed

    searchTextField.setText(keyword.previous());
}//GEN-LAST:event_upButtonActionPerformed

private void downButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_downButtonActionPerformed

    searchTextField.setText(keyword.next());
}//GEN-LAST:event_downButtonActionPerformed

private void logginMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logginMenuItemActionPerformed
    userTextField.setText("");
    passwordPasswordField.setText("");
    confirmPasswordField.setText("");
    userTextField.setBackground(new Color(255,255,255));
    passwordPasswordField.setBackground(new Color(255,255,255));
    confirmPasswordField.setBackground(new Color(255,255,255));
    logginRadioButton.doClick();
    registCheckBox.setVisible(false);
    logginDialog.setVisible(true);
}//GEN-LAST:event_logginMenuItemActionPerformed

private void exitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitButtonActionPerformed
    logginDialog.setVisible(false);
}//GEN-LAST:event_exitButtonActionPerformed

private void logginButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logginButtonActionPerformed
    statusLabel.setText("...");
    //加入逻辑
    UserOperator uop = new UserOperator();
    //loggin
    if (logginRadioButton.isSelected()) {
        boolean[] pass = new boolean[2];
        pass = uop.loginUsr(userTextField.getText(), new String(passwordPasswordField.getPassword()));
        if (!pass[0]) {
            userTextField.setBackground(new Color(255, 153, 153));
            statusLabel.setForeground(new Color(255, 0, 0));
            statusLabel.setText("用户名错误或不存在！");
        }
        if (!pass[1]) {
            passwordPasswordField.setBackground(new Color(255, 153, 153));
            statusLabel.setForeground(new Color(255, 0, 0));
            statusLabel.setText("密码错误！");
        }
        if (pass[0] && pass[1]) {
            userTextField.setBackground(new Color(153, 255, 153));
            passwordPasswordField.setBackground(new Color(153, 255, 153));
            //statusLabel.setText("成功认证！");            
            exitButton.doClick(100);
            JOptionPane.showMessageDialog(null,"成功认证！");
        }
    }
    //regist
    if(registRadioButton.isSelected()){
        if(new String(passwordPasswordField.getPassword()).equals(new String(confirmPasswordField.getPassword()))){
            System.out.println("password:"+new String(passwordPasswordField.getPassword()));
            System.out.println("confirm:"+new String(confirmPasswordField.getPassword()));
            boolean flag=uop.registUsr(userTextField.getText(),new String(passwordPasswordField.getPassword()) ,registCheckBox.isSelected());
            if(flag){

                    statusLabel.setText("注册成功！");
            }else{
                statusLabel.setText("注册失败！");
            }
    }else{
//            System.out.println("password:"+passwordPasswordField.getPassword().toString());
//            System.out.println("confirm:"+confirmPasswordField.getPassword().toString());
            passwordPasswordField.setBackground(new Color(255, 153, 153));
            confirmPasswordField.setBackground(new Color(255, 153, 153));
            statusLabel.setText("两次密码输入有误！");
    }
        userTextField.setText("");
        passwordPasswordField.setText("");
        confirmPasswordField.setText("");
    }
    //delete
    if(deleteRadioButton.isSelected()){
        if(passwordPasswordField.getPassword().toString().equals(confirmPasswordField.getPassword().toString())){
            boolean bs=uop.deleteUsr(userTextField.getText(),passwordPasswordField.getPassword().toString());
            if(!bs){
                statusLabel.setText("删除失败！");
            }else{
                statusLabel.setText("删除成功！");
            }
        }
    }
    //update
    if(updateRadioButton.isSelected()){
        
    }
}//GEN-LAST:event_logginButtonActionPerformed

private void logginRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_logginRadioButtonActionPerformed
    //初始化设置
    confirmLabel.setVisible(false);
    confirmPasswordField.setVisible(false);
    registCheckBox.setEnabled(false);
    logginButton.setText("登陆");
    statusLabel.setForeground(new Color(0, 0, 0));
    statusLabel.setText("...");
}//GEN-LAST:event_logginRadioButtonActionPerformed

private void registRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_registRadioButtonActionPerformed

    confirmLabel.setVisible(true);
    confirmPasswordField.setVisible(true);
    registCheckBox.setSelected(false);
    registCheckBox.setVisible(true);
    registCheckBox.setEnabled(true);
    logginButton.setText("注册");
}//GEN-LAST:event_registRadioButtonActionPerformed

private void getInfoMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_getInfoMenuItemActionPerformed
    getInfoDialog.setVisible(true);
}//GEN-LAST:event_getInfoMenuItemActionPerformed

private void siphonButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_siphonButtonActionPerformed
    infoTextPane.setText(new WebInfoCatch(infoWebTextField.getText(), infoComboBox.getSelectedIndex(),
            infoMoreTextField.getText()).getResult());
}//GEN-LAST:event_siphonButtonActionPerformed

private void infoComboBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_infoComboBoxActionPerformed
    switch (infoComboBox.getSelectedIndex()) {
        case 0:
            infoMoreLabel.setVisible(false);
            infoMoreTextField.setVisible(false);
            infoMoreTextField.setText("");
            break;
        case 1:
            infoMoreLabel.setVisible(false);
            infoMoreTextField.setVisible(false);
            infoMoreTextField.setText("");
            break;
        case 2:
            infoMoreLabel.setVisible(true);
            infoMoreTextField.setVisible(true);
            break;
        case 3:
            infoMoreLabel.setVisible(false);
            infoMoreTextField.setVisible(false);
            infoMoreTextField.setText("");
            break;
    }
}//GEN-LAST:event_infoComboBoxActionPerformed

private void idCardMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_idCardMenuItemActionPerformed
    cardTextField2_4.setText("");
    idCardDialog.setVisible(true);
}//GEN-LAST:event_idCardMenuItemActionPerformed

private void cardTextField2_2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cardTextField2_2MouseClicked
    try {
        cn.siox.util.DateChooser dc = new cn.siox.util.DateChooser();
        dc.setLocation(evt.getXOnScreen(), evt.getYOnScreen());
        dc.setModal(true);
        dc.setAlwaysOnTop(true);
        dc.setVisible(true);
        Date date = dc.getSelectedDate().getTime();
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
        String time = df.format(date);
        dc.setVisible(false);
        cardTextField2_2.setText(time);
        cardTextField2_2.setBackground(new Color(204, 255, 204));
    } catch (Exception e) {
        cardTextField2_2.setText("你必须选择一个日期");
        cardTextField2_2.setBackground(new Color(255, 204, 255));
    }
}//GEN-LAST:event_cardTextField2_2MouseClicked

private void cardButton2_1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cardButton2_1MouseClicked
    cardPopupMenu.removeAll();
    cardScrollPane.setWheelScrollingEnabled(true);
    cardPopupMenu.add(cardPopupPanel);
    cardTable = new cn.siox.util.InputTable(cardTable).defaultInput();
    cardTable.setEnabled(true);
    cardPopupMenu.setLocation(evt.getXOnScreen(), evt.getYOnScreen());
    cardPopupMenu.setVisible(true);
}//GEN-LAST:event_cardButton2_1MouseClicked

private void cardTableMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cardTableMouseClicked
    cardTextField2_1.setText(cardTable.getValueAt(cardTable.getSelectedRow(), 1).toString().trim());
    cardTextField2_1.setBackground(new Color(204, 255, 204));
    cardPopupMenu.setVisible(false);
}//GEN-LAST:event_cardTableMouseClicked

private void cardPopupButtondownActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cardPopupButtondownActionPerformed
    cardTable = new cn.siox.util.InputTable(cardTable).InputDown();
}//GEN-LAST:event_cardPopupButtondownActionPerformed

private void cardPopupButtonupActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cardPopupButtonupActionPerformed
    cardTable = new cn.siox.util.InputTable(cardTable).InputUp();
}//GEN-LAST:event_cardPopupButtonupActionPerformed

private void cardButton2_2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cardButton2_2ActionPerformed
    if (cardComboBox2_1.getSelectedIndex() == 0) {
        int[] man = {1, 3, 5, 7, 9};
        String manRes = String.valueOf(new java.util.Random().nextInt(10)) +
                String.valueOf(new java.util.Random().nextInt(10)) +
                String.valueOf(man[new java.util.Random().nextInt(5)]);
        cardTextField2_4.setText(manRes);
    } else if (cardComboBox2_1.getSelectedIndex() == 1) {
        int[] woman = {2, 4, 6, 8, 0};
        String womanRes = "00";
        while (womanRes.equals("00")) {
            womanRes = String.valueOf(new java.util.Random().nextInt(10)) +
                    String.valueOf(new java.util.Random().nextInt(10));
        }
        womanRes = womanRes + String.valueOf(woman[new java.util.Random().nextInt(5)]);
        cardTextField2_4.setText(womanRes);
    } else {
        cardLabel2_7.setVisible(true);
        cardTextField2_4.setText("000");
    }
}//GEN-LAST:event_cardButton2_2ActionPerformed

private void cardComboBox2_1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cardComboBox2_1ActionPerformed
    if (cardComboBox2_1.getSelectedIndex() == 0) {
        cardComboBox2_1.setBackground(new Color(153, 255, 153));
        cardLabel2_7.setVisible(false);
    } else if (cardComboBox2_1.getSelectedIndex() == 1) {
        cardComboBox2_1.setBackground(new Color(255, 153, 255));
        cardLabel2_7.setVisible(false);
    } else {
        cardComboBox2_1.setBackground(new Color(255, 255, 255));
        cardLabel2_7.setVisible(true);
    }
}//GEN-LAST:event_cardComboBox2_1ActionPerformed

private void cardButton2_3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cardButton2_3ActionPerformed
    cardComboBox2_1.setBackground(new Color(255, 255, 255));
    if (cardTextField2_1.getText().matches("[1-9][0-9]{5}") && !cardTextField2_2.getText().equals("你必须选择一个日期") && !cardTextField2_2.getText().equals("") && (!cardTextField2_4.getText().equals("") || !cardTextField2_5.getText().equals(""))) {
        String cardid = null;
        if (!cardTextField2_4.getText().equals("") && cardTextField2_5.getText().equals("")) {
            cardid = cardTextField2_1.getText() + cardTextField2_2.getText().replaceAll("-", "").toString() + cardTextField2_4.getText();
            cardid += new cn.siox.util.IDCard().getVerify(cardid);
            cardLabel2_6.setForeground(new Color(0, 0, 255));
            cardLabel2_6.setText(cardid);
            cardTextField2_1.setBackground(new Color(204, 255, 204));
        } else {
            if (cardTextField2_5.getText().matches("[0-9]{3}")) {
                cardid = cardTextField2_1.getText() + cardTextField2_2.getText().replaceAll("-", "").toString() + cardTextField2_5.getText();
                cardid += new cn.siox.util.IDCard().getVerify(cardid);
                cardLabel2_6.setForeground(new Color(0, 0, 255));
                cardLabel2_6.setText(cardid);
                cardTextField2_1.setBackground(new Color(204, 255, 204));
            } else {
                cardLabel2_6.setForeground(new Color(255, 153, 255));
                cardLabel2_6.setBackground(new Color(255, 153, 255));
                cardLabel2_6.setText("输入有误，请检查");
            }
        }
    } else {
        if (!cardTextField2_1.getText().matches("[1-9][0-9]{5}")) {
            cardTextField2_1.setBackground(new Color(255, 204, 255));
        }
        cardLabel2_6.setForeground(new Color(255, 153, 255));
        cardLabel2_6.setBackground(new Color(255, 153, 255));
        cardLabel2_6.setText("输入有误，请检查");
    }
}//GEN-LAST:event_cardButton2_3ActionPerformed

private void cardButton1_2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cardButton1_2ActionPerformed
    String str = new String();
    cardLabel1_1.setForeground(new Color(0, 0, 0));
    cardLabel1_2.setText("");
    str = cardTextField1_1.getText();
    if (str.matches("[1-9][0-9]{5}[12][0-9]{7}[0-9]{3}[0-9Xx]{1}")) {
        if (new cn.siox.util.IDCard().Verify(str)) {
            cardTextField1_1.setBackground(new Color(153, 255, 255));
            cardLabel1_1.setText("您输入的身份证看上去是有效的");
        } else {
            cardTextField1_1.setBackground(new Color(255, 153, 255));
            cardLabel1_1.setText("您输入的身份证是伪造的");
        }
    } else if (str.matches("[1-9][0-9]{5}[0-9]{6}[0-9]{3}")) {
        if (new cn.siox.util.IDCard().Verify(str)) {
            cardTextField1_1.setBackground(new Color(153, 255, 255));
            cardLabel1_1.setText("您输入的身份证看上去是有效的");
            cardLabel1_2.setText("您输入了旧版身份证，要转换成新身份证吗？");
        } else {
            cardTextField1_1.setBackground(new Color(255, 153, 255));
            cardLabel1_1.setText("您输入的身份证是伪造的");
        }
    } else {
        cardLabel1_1.setForeground(new Color(255, 0, 0));
        cardTextField1_1.setBackground(new Color(255, 255, 255));
        cardLabel1_1.setText("请检查你的输入是否有误");
    }
}//GEN-LAST:event_cardButton1_2ActionPerformed

private void cardButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cardButton1ActionPerformed
    if (!cardLabel1_2.getText().equals("")) {
        iDCardTabbedPane.setSelectedIndex(2);
        cardTextField3_1.setText(cardTextField1_1.getText());
        cardButton3_1.doClick();
    }
}//GEN-LAST:event_cardButton1ActionPerformed

private void cardButton3_1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cardButton3_1ActionPerformed
    cardTextField3_2.setBackground(new Color(233, 233, 233));
    cardTextField3_1.setBackground(new Color(255, 255, 255));
    if (cardTextField3_1.getText().matches("[1-9][0-9]{5}[0-9]{6}[0-9]{3}")) {
        cardTextField3_1.setBackground(new Color(153, 255, 255));
        cardTextField3_2.setText(new cn.siox.util.IDCard().uptoeighteen(cardTextField3_1.getText()));
    } else {
        cardTextField3_2.setBackground(new Color(255, 153, 255));
        cardTextField3_2.setText("请检查输入是否有误！");
    }
}//GEN-LAST:event_cardButton3_1ActionPerformed

private void idCardDialogClose(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_idCardDialogClose
    // TODO add your handling code here:
    System.out.println("---------->iDCardDialog Close!");
    idCardDialog.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
}//GEN-LAST:event_idCardDialogClose

private void deleteRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteRadioButtonActionPerformed
    logginButton.setText("删除");
    registCheckBox.setEnabled(false);
    confirmPasswordField.setVisible(true);
    statusLabel.setForeground(new Color(0, 0, 0));
    statusLabel.setText("...");
}//GEN-LAST:event_deleteRadioButtonActionPerformed

private void registCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_registCheckBoxActionPerformed
    if (registCheckBox.isSelected()) {
        logginButton.setText("确定");
        confirmPasswordField.setVisible(true);
        statusLabel.setForeground(new Color(255, 0, 0));
        statusLabel.setText("请先输入root帐号和密码！");
    }
    //数据库操作，如果验证成功
//    registCheckBox.setSelected(false);
//    registRadioButton.setSelected(true);

}//GEN-LAST:event_registCheckBoxActionPerformed

private void diaryMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_diaryMenuItemActionPerformed
    diaryFrame.setVisible(true);
}//GEN-LAST:event_diaryMenuItemActionPerformed

private void diaryMenu1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_diaryMenu1ActionPerformed
    try {
        FileOutputStream fs = new FileOutputStream("./diary.txt");
        BufferedOutputStream bs = new BufferedOutputStream(fs);

    } catch (FileNotFoundException ex) {
        Logger.getLogger(KnowledgeSystemMainWindowView.class.getName()).log(Level.SEVERE, null, ex);
    }

}//GEN-LAST:event_diaryMenu1ActionPerformed

private void updateRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_updateRadioButtonActionPerformed
    logginButton.setText("修改");
    registCheckBox.setEnabled(false);
    statusLabel.setForeground(new Color(0, 0, 0));
    statusLabel.setText("...");
}//GEN-LAST:event_updateRadioButtonActionPerformed

private void favoriteButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_favoriteButton2ActionPerformed
    color = favoriteColorChooser.getColor();
    System.out.println(color);
    favoriteDialog.setVisible(false);
    if (0 == favoriteComboBox.getSelectedIndex()) {
        searchPanel.setBackground(color);
    } else if (1 == favoriteComboBox.getSelectedIndex()) {
        searchTextField.setBackground(color);
    } else if (2 == favoriteComboBox.getSelectedIndex()) {
        mainTextPane.setBackground(color);
    }
}//GEN-LAST:event_favoriteButton2ActionPerformed

private void favoriteButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_favoriteButton1ActionPerformed
    favoriteDialog.dispose();
}//GEN-LAST:event_favoriteButton1ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel allLabel;
    private javax.swing.JLabel calculateLabel;
    private javax.swing.JButton cardButton1;
    private javax.swing.JButton cardButton1_2;
    private javax.swing.JButton cardButton2_1;
    private javax.swing.JButton cardButton2_2;
    private javax.swing.JButton cardButton2_3;
    private javax.swing.JButton cardButton3_1;
    private javax.swing.JComboBox cardComboBox2_1;
    private javax.swing.JLabel cardLabel1_1;
    private javax.swing.JLabel cardLabel1_2;
    private javax.swing.JLabel cardLabel2_1;
    private javax.swing.JLabel cardLabel2_2;
    private javax.swing.JLabel cardLabel2_3;
    private javax.swing.JLabel cardLabel2_4;
    private javax.swing.JLabel cardLabel2_5;
    private javax.swing.JLabel cardLabel2_6;
    private javax.swing.JLabel cardLabel2_7;
    private javax.swing.JLabel cardLabel2_8;
    private javax.swing.JLabel cardLabel4_1;
    private javax.swing.JPanel cardPanel1;
    private javax.swing.JPanel cardPanel2;
    private javax.swing.JPanel cardPanel3;
    private javax.swing.JPanel cardPanel3_1;
    private javax.swing.JPanel cardPanel3_2;
    private javax.swing.JPanel cardPanel4;
    private javax.swing.JPanel cardPanel4_1;
    private javax.swing.JPanel cardPanel_1;
    private javax.swing.JButton cardPopupButtondown;
    private javax.swing.JButton cardPopupButtonup;
    private javax.swing.JPopupMenu cardPopupMenu;
    private javax.swing.JPopupMenu cardPopupMenuForLabel2_6;
    private javax.swing.JPanel cardPopupPanel;
    private javax.swing.JScrollPane cardScrollPane;
    private javax.swing.JTable cardTable;
    private javax.swing.JTextField cardTextField1_1;
    private javax.swing.JTextField cardTextField2_1;
    private javax.swing.JTextField cardTextField2_2;
    private javax.swing.JTextField cardTextField2_4;
    private javax.swing.JTextField cardTextField2_5;
    private javax.swing.JTextField cardTextField3_1;
    private javax.swing.JTextField cardTextField3_2;
    private javax.swing.JLabel confirmLabel;
    private javax.swing.JPasswordField confirmPasswordField;
    private javax.swing.JRadioButton deleteRadioButton;
    private javax.swing.JFrame diaryFrame;
    private javax.swing.JMenu diaryMenu1;
    private javax.swing.JMenu diaryMenu2;
    private javax.swing.JMenuBar diaryMenuBar;
    private javax.swing.JMenuItem diaryMenuItem;
    private javax.swing.JMenuItem diaryMenuItem2;
    private javax.swing.JPanel diaryPanel1;
    private javax.swing.JPanel diaryPanel2;
    private javax.swing.JScrollPane diaryScrollPane;
    private javax.swing.JTextPane diaryTextPane;
    private javax.swing.JLabel dictLabel;
    private javax.swing.JButton downButton;
    private javax.swing.JLabel encyclopediaLabel;
    private javax.swing.JButton exitButton;
    private javax.swing.JButton favoriteButton1;
    private javax.swing.JButton favoriteButton2;
    private javax.swing.JButton favoriteButton3;
    private javax.swing.JColorChooser favoriteColorChooser;
    private javax.swing.JComboBox favoriteComboBox;
    private javax.swing.JDialog favoriteDialog;
    private javax.swing.JLabel favoriteLabel;
    private javax.swing.JLabel favoriteLabel1;
    private javax.swing.JMenuItem favoriteMenuItem;
    private javax.swing.JPanel favoritePanel;
    private javax.swing.JDialog getInfoDialog;
    private javax.swing.JMenuItem getInfoMenuItem;
    private javax.swing.JLabel iDCardLabel;
    private javax.swing.JTabbedPane iDCardTabbedPane;
    private javax.swing.JDialog idCardDialog;
    private javax.swing.JMenuItem idCardMenuItem;
    private javax.swing.JLabel infoComLabel;
    private javax.swing.JComboBox infoComboBox;
    private javax.swing.JLabel infoDialogLabel;
    private javax.swing.JLabel infoDialogTextLabel;
    private javax.swing.JLabel infoMoreLabel;
    private javax.swing.JTextField infoMoreTextField;
    private javax.swing.JTextPane infoTextPane;
    private javax.swing.JLabel infoWebLabel;
    private javax.swing.JTextField infoWebTextField;
    private javax.swing.JButton jButton1;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JPanel jumpPanel;
    private javax.swing.ButtonGroup logbuttonGroup;
    private javax.swing.JButton logginButton;
    private javax.swing.JDialog logginDialog;
    private javax.swing.JLabel logginDialogLabel;
    private javax.swing.JMenuItem logginMenuItem;
    private javax.swing.JPanel logginPanel;
    private javax.swing.JRadioButton logginRadioButton;
    private javax.swing.JPanel mainPanel;
    private javax.swing.JScrollPane mainScrollPane;
    private javax.swing.JTextPane mainTextPane;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JButton nextButton;
    private javax.swing.JLabel passwordLabel;
    private javax.swing.JPasswordField passwordPasswordField;
    private javax.swing.JButton preButton;
    private javax.swing.JLabel productLabel;
    private javax.swing.JProgressBar progressBar;
    private javax.swing.JCheckBox registCheckBox;
    private javax.swing.JRadioButton registRadioButton;
    private javax.swing.JLabel resultLabel;
    private javax.swing.JButton returnButton;
    private javax.swing.JButton searchButton;
    private javax.swing.JPanel searchPanel;
    private javax.swing.JTextField searchTextField;
    private javax.swing.JButton siphonButton;
    private javax.swing.JLabel statusAnimationLabel;
    private javax.swing.JLabel statusLabel;
    private javax.swing.JLabel statusMessageLabel;
    private javax.swing.JPanel statusPanel;
    private javax.swing.JLabel tatalLabel;
    private javax.swing.JLabel technologyLabel;
    private javax.swing.JLabel timeLabel;
    private javax.swing.JMenu toolsMenu;
    private javax.swing.JButton upButton;
    private javax.swing.JRadioButton updateRadioButton;
    private javax.swing.JLabel userLabel;
    private javax.swing.JTextField userTextField;
    private javax.swing.JButton yesORnoButton1;
    private javax.swing.JButton yesORnoButton2;
    private javax.swing.JDialog yesORnoDialog;
    private javax.swing.JLabel yesORnoLabel1;
    private javax.swing.JLabel yesORnoLabel2;
    private javax.swing.JLabel yesORnoLabel3;
    private javax.swing.JLabel yesORnoLabel4;
    // End of variables declaration//GEN-END:variables
    private final Timer messageTimer;
    private final Timer busyIconTimer;
    private final Icon idleIcon;
    private final Icon[] busyIcons = new Icon[15];
    private int busyIconIndex = 0;
    private JDialog aboutBox;
    private Color color;
    private short type = 0;
    KeywordVector keyword = new KeywordVector();
}
